package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/*班级对象
*
* */
@TableName("t_class")
public class ClassBean {
    @TableId(value = "pk_classId",type = IdType.AUTO)
    private Integer id;//班级id
    @TableField("c_name")
    private String name;//名称
    @TableField("c_date")
    private LocalDate classDate;//开班时间
    @TableField("c_teacher")
    private String teacher;//班主任

    public ClassBean() {
    }

    public ClassBean(Integer id, String name, LocalDate classDate, String teacher) {
        this.id = id;
        this.name = name;
        this.classDate = classDate;
        this.teacher = teacher;
    }

    public ClassBean(String name, LocalDate classDate, String teacher) {
        this.name = name;
        this.classDate = classDate;
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", classDate=" + classDate +
                ", teacher='" + teacher + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getClassDate() {
        return classDate;
    }

    public void setClassDate(LocalDate classDate) {
        this.classDate = classDate;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }
}
